<div class="buttons">
	<?php for ($i = 1; $i <= count($images); $i++): ?>
		<a href="javascript:void(0);"<?php echo $i == 1 ? ' class="active"' : ''; ?>><?php echo $i; ?></a>
	<?php endfor; ?>
</div>

<div class="image-container">
	<ul>
		<?php foreach ($images as $image): ?>
			<li><img src="/assets/upload/img/<?php echo $image->name; ?>" alt=".."/></li>
		<?php endforeach; ?>
	</ul>
	<a href="javascript:void(0);" id="previous">prev</a>
	<a href="javascript:void(0);" id="next">next</a>
</div>

<div id="footer-bar">
    <ul>
		<li class="back" title="返回项目列表"><a href="/project/index">BACK</a></li>
		<?php if ($next): ?>
			<li class="next-project" title="下一个项目"><a href="/project/show/<?php echo $next; ?>">NEXT</a></li>
		<?php endif; ?>
		<?php if ($prev): ?>
			<li class="previous-project" title="上一个项目"><a href="/project/show/<?php echo $prev; ?>">PREV</a></li>
		<?php endif; ?>
		<li class="description">
			<a href="javascript:void(0);">
				<span class="more">MORE</span>
				<span class="close">CLOSE</span>
			</a>
		</li>
		<li class="title"><?php echo $project->name; ?></li>
    </ul>
    <div class="description-container">
		<div class="description"><?php echo nl2br($project->description); ?></div>
    </div>
</div>